<template>
    <Form ref="formData" :model="formData" :rules="ruleValidate" :label-width="120">
        <FormItem label="审核结果： " prop="auditResult">
            <RadioGroup v-model="formData.auditResult">
                <Radio label="01">
                    <span>通过</span>
                </Radio>
                <Radio label="02">
                    <span>不通过</span>
                </Radio>
            </RadioGroup>
        </FormItem>
        <div style="text-align: center;margin: 15px">
            <Button type="primary" @click="handleSubmit('formData')" style="margin-left: 8px">保存</Button>
        </div>
        <!--加载中显示 -->
        <Spin size="large" fix v-if="spinShow"></Spin>
    </Form>
</template>

<script>
    import Base from '@/components/table/BaseEdit.vue';
    export default {
        extends:Base,
        data () {
            return {
            }
        },
        methods: {
            loadDataById(id){
                this.load("/api/donate/read",{id},true,()=>{
                    if(this.formData.auditResult=='00'){
                        this.formData.auditResult='01';
                    }
                })
            },handleSubmit (name) {
                //保存
                this.save(name,"/api/donate/save",()=>{

                });
            },
        }
    }
</script>

<style scoped>

</style>
